 package com.itheima.domain.pojo;

  public class Clazz {
      private Long id;
      private String className;
      private String teacher;
      private int studentCount;

      // 构造方法
      public Clazz() {}

      public Clazz(Long id, String className, String teacher, int studentCount) {
          this.id = id;
          this.className = className;
          this.teacher = teacher;
          this.studentCount = studentCount;
      }

      // Getter 和 Setter 方法
      public Long getId() {
          return id;
      }

      public void setId(Long id) {
          this.id = id;
      }

      public String getClassName() {
          return className;
      }

      public void setClassName(String className) {
          this.className = className;
      }

      public String getTeacher() {
          return teacher;
      }

      public void setTeacher(String teacher) {
          this.teacher = teacher;
      }

      public int getStudentCount() {
          return studentCount;
      }

      public void setStudentCount(int studentCount) {
          this.studentCount = studentCount;
      }

      // toString 方法
      @Override
      public String toString() {
          return "Class{" +
                  "id=" + id +
                  ", className='" + className + '\'' +
                  ", teacher='" + teacher + '\'' +
                  ", studentCount=" + studentCount +
                  '}';
      }
  }